feat: add nonce attribute for loading scripts with csp policy#554
feat: add nonce attribute for loading scripts with csp policy#554felixmosh wants to merge 1 commit intotinymce:mainfrom
Conversation
|
? |
|
@felixmosh Looking back at #553, it sounds like you're hoping to load TinyMCE with a nonce and have that nonce automatically applied to every script TinyMCE creates. If that's the case, unfortunately this PR won’t achieve that. Even if that’s not the goal, this change still won’t allow you to enforce a strict CSP reliably, since TinyMCE dynamically injects additional scripts at init time (for plugins, skins, and other resources). You may want to forward this as a feature request to the TinyMCE issue tracker For reference, Tiny has a useful guide on CSP considerations here: |
|
Usage of nonce for csp, is standard thing. |
|
Don't you also need to add |
|
Yeap... |
closes #553